/*
 * LooseRelativeLocation.java
 *
 * Created on 19 maart 2008, 9:18
 *
 * @author wijnand.schepens@hogent.be
 */

package diagram.locations;

/**
 * relative point that doesn't affect base location when moved
 */
public class FlexibleRelativeLocation extends RelativeLocation
{
    public FlexibleRelativeLocation(){}
	
	public FlexibleRelativeLocation(Location ref, int relativeX, int relativeY)
	{
		super(ref, relativeX, relativeY);
	}

	public void setXY(int x, int y)
	{
		this.setRelativeXY(x - this.getBase().getX(), y - this.getBase().getY());
	}

    public void setRef(Location ref){
        super.setBase(ref);
    }
	
}
